package handler

import (
    "github.com/micro/go-micro/v2"
    "gonaio_base/constant"
    "gonaio_base/rpc/proto_user"
    "gonaio_base/service"
)

func GetUserService() proto_user.UserService {
    r := bservice.New().GetRegistry()
    s := micro.NewService(r)
    userService := proto_user.NewUserService(bconstant.SERVICE_NAME_USER, s.Client())
    return userService
}
